package HomeWorkNewYear;

import java.util.Arrays;

public class Day05ShuZuBianLi {
    public static void main(String[] args) {
        int arr[]=new int[10];
        for (int i=0;i<arr.length;i++){
            arr[i] = (int)(Math.random()*100+1);
            /*System.out.println(arr[i]);

             */
        }
        int[]a={10,20,30,40,50};
        a= Arrays.copyOf(a,a.length+1);
        for (int i=0;i<a.length;i++){
            //System.out.println(a[i]);
        }
        int[]b=Arrays.copyOf(a,4);
        for (int i=0;i<a.length;i++){
            System.out.println(b[i]);
        }
    }
}
